control
Class Update

java.lang.Object
  extended by control.Update

public class Update
extends java.lang.Object

Updates the field variable of the current simulation

Author:

Constructor Summary
Update()
           
 
Method Summary
static void globals(State s, int week)
          Updates the global variable for the simulation
static void outputs(State s)
          Outputs the update onto the main window
static void skiiers(State s, int week)
          Updates the skiiers' field value for the week
static void skiiersuccess()
           
static void variables(State s, Details d)
          Updates the other variables (gamepercentage, numberofskiiers, weeks, weather)
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Update

public Update()
Method Detail

skiiersuccess

public static void skiiersuccess()

skiiers

public static void skiiers(State s,
                           int week)
Updates the skiiers' field value for the week

Parameters:
week: - Number of week the simulation is on
s: - Current state which stores the field variables

globals

public static void globals(State s,
                           int week)
Updates the global variable for the simulation

Parameters:
week: - Number of week the simulation is on
s: - Current state which stores the field variables

variables

public static void variables(State s,
                             Details d)
Updates the other variables (gamepercentage, numberofskiiers, weeks, weather)

Parameters:
week: - Number of week the simulation is on
s: - Current state which stores the field variables

outputs

public static void outputs(State s)
Outputs the update onto the main window

Parameters:
s - Current state which stores the field variables